'use strict'

const Controller = require('egg').Controller

class SysPermissionController extends Controller {
  async permissionList() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionList(data)
  }

  async permissionAdd() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionAdd(data)
  }

  async permissionUpdate() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionUpdate(data)
  }

  async permissionDelete() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionDelete(data)
  }

  async permissionAddBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionAddBatch(data)
  }

  async permissionDeleteBatch() {
    const { ctx, service } = this
    const data = ctx.request.body
    await service.sysPermission.permissionDeleteBatch(data)
  }
}

module.exports = SysPermissionController
